<%@ page import="musgo.Evento" %>



<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'nombreE', 'error')} required">
	<label for="nombreE">
		<g:message code="evento.nombreE.label" default="Nombre E" />
		<span class="required-indicator">*</span>
	</label>
	<g:textArea name="nombreE" cols="40" rows="5" maxlength="256" required="" value="${eventoInstance?.nombreE}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'lugar', 'error')} required">
	<label for="lugar">
		<g:message code="evento.lugar.label" default="Lugar" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="lugar" required="" value="${eventoInstance?.lugar}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'descripcion', 'error')} ">
	<label for="descripcion">
		<g:message code="evento.descripcion.label" default="Descripcion" />
		
	</label>
	<g:textArea name="descripcion" cols="40" rows="5" maxlength="3000" value="${eventoInstance?.descripcion}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'imagenEv', 'error')} ">
	<label for="imagenEv">
		<g:message code="evento.imagenEv.label" default="Imagen Ev" />
		
	</label>
	<g:select id="imagenEv" name="imagenEv.id" from="${musgo.Imagen.list()}" optionKey="id" value="${eventoInstance?.imagenEv?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'artista', 'error')} required">
	<label for="artista">
		<g:message code="evento.artista.label" default="Artista" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="artista" name="artista.id" from="${musgo.Artista.list()}" optionKey="id" required="" value="${eventoInstance?.artista?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'evento', 'error')} required">
	<label for="evento">
		<g:message code="evento.evento.label" default="Evento" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="evento" precision="day"  value="${eventoInstance?.evento}"  />
</div>

